package com.changanw;

/**
 * @author changanw
 * @version ncc1.0
 * @description TODO
 * @date 2023/7/6 6:47
 */
public class CalculatorImpl implements Calculator{
  @Override
  public int add(int a, int b) {
    System.out.println(a + "+" + b + "=" + (a + b));
    return a + b;
  }

  @Override
  public int minus(int a, int b) {
    System.out.println(a + "-" + b + "=" + (a - b));
    return a - b;
  }
}
